package com.soft.collateral.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/8/7
 */
@Data
@TableName("document")
@ApiModel("押品凭证类")
public class Document {

    @TableId(value = "document_id",type = IdType.AUTO)
    @ApiModelProperty("凭证ID")
    private Integer documentId;

    @TableField("collateral_id")
    @ApiModelProperty("押品ID")
    private Integer collateralId;

    @TableField("document_name")
    @ApiModelProperty("凭证名称")
    private String documentName;

    @TableField("document_number")
    @ApiModelProperty("凭证编号")
    private String documentNumber;

    @TableField("document_url")
    @ApiModelProperty("凭证路径")
    private String documentUrl;
}